#define _CRT_SECURE_NO_WARNINGS
#include "Stack.h"


void test()
{
	Stack st;
	StackInit(&st);

	StackPush(&st, 1);
	StackPush(&st, 2);
	StackPush(&st, 3);
	StackPush(&st, 4);
	StackPush(&st, 5);
	bool a = StackEmpty2(&st);
	if(a == true)
		printf("%d\n", a);

	printf("%d\n", StackSize(&st));

	while (st.top)
	{
		printf("%d->", StackTop(&st));
		StackPuop(&st);
	}
	printf("\n");
	printf("%d\n", StackSize(&st));
	bool b = StackEmpty2(&st);
	if(b == false)
		printf("%d\n", StackEmpty2(&st));

}
int main()
{
	test();
	return 0;
}